Enabling quotas
In this article I will explain how to enable quotas on a cpanel server.
Recently I had to setup a cpanel server that didn’t have quotas enabled by default.
What is the result of a server without quotas?
Simple. All accounts will have unlimited diskspace.
How to fix this?
First of all you will have to login to your server using ssh.
- You first have to edit /etc/fstab
- Locate the line that looks something like
- Add after “defaults” the word “usrquota”. It should look something like
- Save and exit
- Remount the / partition
- Now run the cpanel script to fixquotas
nano /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/1 / ext3 defaults,usrquota 1 1
mount -o remount /
/scripts/fixquotas
That’s it! Now all you cpanel accounts should have a limited disk space that you setup.
If you have any questions or problems don’t hesitate to leave a message.
If you enjoyed this post, make sure you subscribe to my RSS feed!
- November 29th













haha ^^ nice, is there a section to follow the RSS feed
goood thanks you write godd
I have encountered this problem of no quotas (or more that quotas are showing as infinite) being enabled, however this solution does not resemble my setup.
I’m running Cpanel on a Centos5 based VPS, and can locate 3 fstab files (”/etc/fstab” & “/etc/fstab.quotas” & “/etc/fstab,v”), but none of these files contains anything like what is suggested above.
For the record, these files (fstab and fstab.quotas) show
none /dev/pts devpts rw 0 0
I’ll continue investigating this problem and report back if I find a solution, if not, I’d be keen to hear how anyone else has resolved this problem.
Kind regards,
Carl.